package lab02.test36;

/**
 *
 * 本科生
 * Created by 邱雅婷 on 2017-11-9.
 */
public class Undergraduate extends Student {

    @Override
    String calGrade() {


        double avg = calAverage();

        if (avg >= 80 && avg <= 100)
            grade = "优秀的";
        else if(avg >= 70 && avg < 80)
            grade = "良好的";
        else if( avg >= 60 && avg < 70)
            grade = "一般的";
        else if(avg >= 50 && avg < 60)
            grade = "及格的";
        else
            grade = "不及格的";

        return grade;
    }
}
